﻿<phone:PhoneApplicationPage 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"     
	xmlns:local="clr-namespace:Yelper.Phone"     
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
	x:Class="Yelper.Phone.MainPage"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	Orientation="Portrait"
	shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded">
	
	<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" BackgroundColor="{StaticResource ApplicationBarBackgroundColor}" ForegroundColor="{StaticResource ApplicationBarForegroundColor}" Opacity="1">            
			<shell:ApplicationBar.MenuItems>                
                <shell:ApplicationBarMenuItem Text="Sign in" Click="SignOutApplicationBarMenuItem_Click"/>
                <shell:ApplicationBarMenuItem Text="About" Click="AboutApplicationBarMenuItem_Click"/>
            </shell:ApplicationBar.MenuItems>            
        	<shell:ApplicationBarIconButton IconUri="/icons/appbar.edit.rest.png" Text="New Yelp" Click="NewYelpApplicationBarIconButton_Click" IsEnabled="False"/>        	
            <shell:ApplicationBarIconButton IconUri="/icons/appbar.refresh.rest.png" Text="refresh" Click="RefreshApplicationBarIconButton_Click"/>
        </shell:ApplicationBar>		
    </phone:PhoneApplicationPage.ApplicationBar>
	

	<!--LayoutRoot is the root grid where all page content is placed-->
	<Grid x:Name="LayoutRoot" Background="Transparent">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="*"/>
		</Grid.RowDefinitions>        
		<toolkit:PerformanceProgressBar x:Name="LoadingProgressBar" Margin="0" VerticalAlignment="Top" Background="{StaticResource ForegroundBrush}" Foreground="{StaticResource ForegroundBrush}"/>        

        <StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="20,20,0,0">
    		<Image Height="30" Width="30" Source="Yelper.png"/>
    		<TextBlock TextWrapping="Wrap" Foreground="{StaticResource ForegroundBrush}" Margin="5,0,0,0" Text="YELPER" />
    	</StackPanel>
		
		<controls:Pivot x:Name="PivotControl" Grid.Row="1" Title="" HeaderTemplate="{StaticResource PivotHeaderDataTemplate}" Style="{StaticResource PivotStyle}"/>
	</Grid>
	
</phone:PhoneApplicationPage>